--[[session:consoleLog("info","--进入before_bridge---------");
session:answer();
session:setAutoHangup(false)


--获取分配的坐席
local ccagent=session:getVariable("cc_agent");
--获取uuid
local uniqueId=session:getVariable("uuid");

]]

--在桥接之前唯一做的就是提示用户可能被录音
--[[!local api=freeswitch.API();
local event = freeswitch.Event("CUSTOM", "NECO:BEFORE_BRIDGE");
event:addHeader("Caller-Orig-Caller-ID-Number",session:getVariable("caller_id_number"));
event:addHeader("Caller-Callee-ID-Number",ccagent);
event:addHeader("Unique-ID",uniqueId);
--event:fire();
--]]

--session:consoleLog("info","event----"..event:serialize("json"));
session:streamFile("/usr/local/freeswitch/sounds/tiprecord.wav");
--session:consoleLog("info","--离开before_bridge-------"..uniqueId)
